package com.tubang.logistics.entity;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 发票表
 * </p>
 *
 * @author youtanzhi
 * @since 2018-03-25
 */
@TableName("tb_invoice")
public class InvoiceEntity extends Model<InvoiceEntity> {

	private static final long serialVersionUID = 1L;

	/**
	 * 发票id
	 */
	private String id;
	/**
	 * 编号
	 */
	private String num;
	/**
	 * 账单id
	 */
	@TableField("bill_id")
	private String billId;
	/**
	 * 账单编号
	 */
	@TableField("bill_num")
	private String billNum;
	/**
	 * 金额
	 */
	private BigDecimal money;
	/**
	 * 用户id
	 */
	@TableField("user_id")
	private String userId;
	/**
	 * 用户姓名
	 */
	@TableField("user_name")
	private String userName;
	/**
	 * 承运人姓名
	 */
	@TableField("carrier_name")
	private String carrierName;
	/**
	 * 承运人
	 */
	@TableField("carrier_id")
	private String carrierId;
	/**
	 * 发票状态
	 */
	@TableField("status_code")
	private Integer statusCode;
	/**
	 * 发票凭证
	 */
	private String img;
	/**
	 * 公司名称
	 */
	@TableField("company_name")
	private String companyName;
	/**
	 * 注册地址
	 */
	@TableField("register_address")
	private String registerAddress;
	/**
	 * 开户银行
	 */
	@TableField("bank_name")
	private String bankName;
	/**
	 * 银行账户
	 */
	@TableField("bank_account")
	private String bankAccount;
	/**
	 * 固定电话
	 */
	private String telephone;
	/**
	 * 纳税人编号
	 */
	@TableField("taxpayer_num")
	private String taxpayerNum;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@TableField("update_time")
	private Date updateTime;
	/**
	 * 是否可用
	 */
	private String enable;
	/**
	 * 备注
	 */
	private String remarks;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getBillId() {
		return billId;
	}

	public void setBillId(String billId) {
		this.billId = billId;
	}

	public String getBillNum() {
		return billNum;
	}

	public void setBillNum(String billNum) {
		this.billNum = billNum;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCarrierName() {
		return carrierName;
	}

	public void setCarrierName(String carrierName) {
		this.carrierName = carrierName;
	}

	public String getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(String carrierId) {
		this.carrierId = carrierId;
	}

	public Integer getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(Integer statusCode) {
		this.statusCode = statusCode;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getRegisterAddress() {
		return registerAddress;
	}

	public void setRegisterAddress(String registerAddress) {
		this.registerAddress = registerAddress;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getTaxpayerNum() {
		return taxpayerNum;
	}

	public void setTaxpayerNum(String taxpayerNum) {
		this.taxpayerNum = taxpayerNum;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Invoice{" +
				"id=" + id +
				", num=" + num +
				", billId=" + billId +
				", billNum=" + billNum +
				", money=" + money +
				", userId=" + userId +
				", userName=" + userName +
				", carrierName=" + carrierName +
				", carrierId=" + carrierId +
				", statusCode=" + statusCode +
				", img=" + img +
				", companyName=" + companyName +
				", registerAddress=" + registerAddress +
				", bankName=" + bankName +
				", bankAccount=" + bankAccount +
				", telephone=" + telephone +
				", taxpayerNum=" + taxpayerNum +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				", enable=" + enable +
				", remarks=" + remarks +
				"}";
	}
}
